﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZR.Model.Models.ProductionControl;

namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// 报警信息查询对象
    /// </summary>
    public class CksAlarmRecordQueryDto : PagerInfo
    {
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 结束时间 
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }

        /// <summary>
        /// 站点编号
        /// </summary>
        public string StationCode { get; set; }

        /// <summary>
        /// 搜索类容
        /// </summary>
        public string SearchContent { get; set; }

    }

    /// <summary>
    /// 报警信息输出对象
    /// </summary>
    public class CksAlarmRecordDto
    {
        /// <summary>
        /// 报警记录ID
        /// </summary>
        public long AlarmRecordId { get; set; }

        /// <summary>
        /// 报警消息ID
        /// </summary>
        public long AlarmMessageId { get; set; }

        /// <summary>
        /// PLCID 
        /// </summary>
        public int PlcID { get; set; }

        /// <summary>
        /// 产线编号
        /// </summary>
        public string ProductionLineCode { get; set; }

        /// <summary>
        /// 工站编号
        /// </summary>
        public string StationCode { get; set; }

        /// <summary>
        /// 数据块
        /// </summary>
        public int BlockAddr { get; set; }

        /// <summary>
        /// 报警地址
        /// </summary>
        public int AlarmAddr { get; set; }

        /// <summary>
        /// 报警DB地址
        /// </summary>
        public string AlarmDBAddr { get; set; }

        /// <summary>
        /// 报警地址位
        /// </summary>
        public int AlarmBitIndex { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public bool Value { get; set; }

        // <summary>
        /// 报警级别 1：一般 2：警告 3：严重，这个字段数据过滤筛选
        /// </summary>
        public int? Level { get; set; }

        /// <summary>
        /// 中文语报警信息
        /// </summary>
        public string MessageCn { get; set; }

        /// <summary>
        /// 西班牙语报警信息
        /// </summary>
        public string MessageEs { get; set; }

        /// <summary>
        /// 英文语报警信息
        /// </summary>
        public string MessageUs { get; set; }


        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

    }

}
